﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ship.DaDa
{
    /// <summary>
    /// 达达配送的配置
    /// </summary>
    public class Config
    {
        //达达后台账户
        //用户名：深圳企动网络有限公司
        //密码：qd711688

        public static string app_key = "dadad179cf9c75d1d3b";

        public static string app_secret = "db7d2dcfa8661db408e30e58dd85fa95";

        /// <summary>
        /// 商户ID
        /// </summary>
        public static int source_id =4237;

        /// <summary>
        /// 请求域名
        /// </summary>
        public static string api_url = "http://newopen.imdada.cn";

        /// <summary>
        /// 回调地址
        /// </summary>
         public static string api_callback = "http://121.199.10.151:8011/api/ship/Notify";

        #region 测试环境参数
        
            /// <summary>
        /// 测试的商户ID
        /// </summary>
        //public static int source_id = 73753;

        /// <summary>
        /// 测试的域名
        /// </summary>
        //public static string api_url = "http://newopen.qa.imdada.cn";

        /// <summary>
        /// 测试的回调地址
        /// </summary>
        //public static string api_callback = "http://weapptest.711688.com/api/ship/Notify";

        #endregion

        /// <summary>
        /// 发送订单
        /// </summary>
        public static string api_addorder = "/api/order/addOrder";
        /// <summary>
        /// 重发订单
        /// </summary>
        public static string api_readdorder = "/api/order/reAddOrder";
        /// <summary>
        /// 查询订单运费接口
        /// </summary>
        public static string api_queryDeliverFee = "/api/order/queryDeliverFee";
        /// <summary>
        /// 查询运费后发单接口
        /// </summary>
        public static string api_addAfterQuery = "/api/order/addAfterQuery";
        /// <summary>
        /// 查询城市代码
        /// </summary>
        public static string api_city = "/api/cityCode/list";
        /// <summary>
        /// 对待接单状态的订单增加小费
        /// </summary>
        public static string api_addTip = "/api/order/addTip";
        /// <summary>
        /// 查询订单的相关信息以及骑手的相关信息
        /// </summary>
        public static string api_orderstatusquery = "/api/order/status/query";
        /// <summary>
        /// 取消订单
        /// </summary>
        public static string api_orderCancel = "/api/order/formalCancel";
        /// <summary>
        /// 订单取消理由列表
        /// </summary>
        public static string api_orderCancelReasons = "/api/order/cancel/reasons";
        /// <summary>
        /// 已发布的订单追加给指定的配送员
        /// </summary>
        public static string api_appoint = "/api/order/appoint/exist";
        /// <summary>
        /// 取消已发布的追加订单
        /// </summary>
        public static string api_appointcancel = "/api/order/appoint/cancel";
        /// <summary>
        /// 可追加订单的配送员列表
        /// </summary>
        public static string api_transporter = "/api/order/appoint/list/transporter";
        /// <summary>
        /// 商户注册接口,并完成与该商户的绑定.生成的初始化密码会以短信形式发送给注册手机号
        /// </summary>
        public static string api_merchantadd = "/merchantApi/merchant/add";
        /// <summary>
        /// 新增门店
        /// </summary>
        public static string api_shopadd = "/api/shop/add";
        /// <summary>
        /// 更新门店
        /// </summary>
        public static string api_shopupdate = "/api/shop/update";
        /// <summary>
        /// 门店信息
        /// </summary>
        public static string api_shopdetail = "/api/shop/detail";
        /// <summary>
        /// 商家投诉
        /// </summary>
        public static string api_complaint = "/api/complaint/dada";
        /// <summary>
        /// 商家投诉理由列表
        /// </summary>
        public static string api_complaintreason = "/api/complaint/reasons";
        /// <summary>
        /// 获取充值链接
        /// </summary>
        public static string api_recharge = "/api/recharge";
        /// <summary>
        /// 查询账户余额
        /// </summary>
        public static string api_balance = "/api/balance/query";
        
    }
}
